package com.gzhryc.net_marketing.cloud.goods.dao.db;

import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

/**
 * 商品评价
 * @author zhanghao
 *
 */
@Table(name = "goods_evaluate")
public class GoodsEvaluate {

	@PrimaryKey
	@Column(name = "trade_no",notNull = true)
	protected String tradeNo;

	@PrimaryKey
	@Column(name = "member_id",notNull = true)
	protected Long memberId;
	
	@Column(name = "goods_id",notNull = true,note = "商品ID")
	protected String goodsId;
	
	@Column(name = "evaluate_num",notNull = true,note = "评分")
	protected Integer evaluateNum;
	
	@Column(name = "evaluate_note")
	protected String evaluateNote;
	
	@Column(name = "update_date", autoUpdateTime = true)
	protected Date updateDate;

	@Column(name = "create_date")
	protected Date createDate;

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getEvaluateNum() {
		return evaluateNum;
	}

	public void setEvaluateNum(Integer evaluateNum) {
		this.evaluateNum = evaluateNum;
	}

	public String getEvaluateNote() {
		return evaluateNote;
	}

	public void setEvaluateNote(String evaluateNote) {
		this.evaluateNote = evaluateNote;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
